package com.hiss.basic.model.system.domain;

import com.hiss.basic.starter.mybatis.constant.DataSourceConstant;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 系统字典项 domain
 */
@Data
@Table(value = "sys_dict_item", dataSource = DataSourceConstant.DEFAULT_DATASOURCE)
public class SysDictItemDomain implements Serializable {

    private static final long serialVersionUID = 1;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 字典标签
     */
    private String label;

    /**
     * 字典键值
     */
    private String value;

    /**
     * 标签颜色
     */
    private String color;

    /**
     * 字典排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 字典 ID
     */
    private Long dictId;

    /**
     * 启用状态
     *
     * @see com.hiss.basic.starter.core.enums.EnableStatusEnum
     */
    private Integer enableStatus;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onUpdateValue = "now()")
    private LocalDateTime updateTime;
}
